package info.akabana.yui.examples.mobile.helloworld.helper
{
	import info.akabana.yui.examples.mobile.helloworld.view.HelloWorldResultView;
	import info.akabana.yui.examples.mobile.helloworld.vm.UserViewModel;

	import org.seasar.akabana.yui.framework.ns.viewpart;

	import spark.components.Label;
	import spark.components.ViewNavigator;
	import spark.transitions.FlipViewTransition;

	use namespace viewpart;

	public class HelloWorldResultHelper
	{
		viewpart var navigator:ViewNavigator;
		viewpart var lblUserId:Label;
		viewpart var lblPassword:Label;
		viewpart var data:UserViewModel;

		public function settingResult():void {

			lblUserId.text = data.userId;
			lblPassword.text = data.password;
		}

		public function moveToHome():void {
			navigator.popView(new FlipViewTransition());
		}
	}
}